package service.mailer;

/**
 *
 * @author Juan Sebastian Hernández Serrato
 */
public class MailDirector {
    
    private MailBuilder mailBuilder;
    
    public void setMailBuilder(MailBuilder mb){
        mailBuilder = mb;
    }
    
    public UPNMail getUPNMail(){
        return mailBuilder.getUPNMail();
    }
    
    public void constructMail(){
        mailBuilder.createMail();
        mailBuilder.buildContent();
        mailBuilder.buildDestinatary();
        mailBuilder.buildSubject();
    }
}
